package com.tianxin.workbao.workBao.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 部门类
 * Created by hacker on 2017/6/17.
 */
@Entity
public class Organization extends BaseBean {
   @Id(autoincrement = true)
    private long id;
    @Property
    private Long pid;
    @Property
    private String ogname;
    @Property
    private String pogname;
    @Property
    private Date addtime;
    @Property
    private String remark;
    @Property
    private Integer status;
    @Property
    private Integer isis;

    @Generated(hash = 2074608849)
    public Organization(long id, Long pid, String ogname, String pogname,
            Date addtime, String remark, Integer status, Integer isis) {
        this.id = id;
        this.pid = pid;
        this.ogname = ogname;
        this.pogname = pogname;
        this.addtime = addtime;
        this.remark = remark;
        this.status = status;
        this.isis = isis;
    }

    @Generated(hash = 27039612)
    public Organization() {
    }

    public long getId() {
        return id;
    }

    public Organization setId(long id) {
        this.id = id;
        return this;
    }

    public String getOgname() {
        return ogname;
    }

    public void setOgname(String ogname) {
        this.ogname = ogname == null ? null : ogname.trim();
    }

    public String getPogname() {
        return pogname;
    }

    public void setPogname(String pogname) {
        this.pogname = pogname == null ? null : pogname.trim();
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsis() {
        return isis;
    }

    public void setIsis(Integer isis) {
        this.isis = isis;
    }

    public Long getPid() {
        return this.pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }
}